<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New Person Wizard</title>
<link rel="stylesheet" type="text/css" href="inputformstyle.css"/>
<script type="text/javascript">
  function sendNewSoftRequest()
  {
	var xmlDoc = null;
	if (window.ActiveXObject)
    {// code for IE
        xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    }
    else if (document.implementation.createDocument)
    {// code for Mozilla, Firefox, Opera, etc.
        xmlDoc=document.implementation.createDocument("","",null);
    }
	
	if (xmlDoc!=null)
	{
        xmlDoc.async = false;
	    xmlDoc.load("data.xml");
	    var newSoft = xmlDoc.createElement("software");
	//var newItemTag = newSoft.appendChild("item_name");
	//var newItemName = xmlDoc.createCDATASection(document.getElementById("form_item").innerHTML);
	//newItemTag.appendChild(newItemName);
	//var newOwnerTag = newSoft.appendChild("owner");
	//var newOwnerName = xmlDoc.createCDATASection(document.getElementById("form_owner").innerHTML);
	//newOwnerTag.appendChild(newOwnerName);
	}
	window.close();
  }
</script>
</head>

<body>
<form>
  <table  cellspacing="0" cellpadding="0">
    <tr>
      <td id="col_name">Item Name:</td>
      <td id="col_input">
        <input id="form_item"type="text"/>
      </td>
    </tr>
    <tr>
      <td>Owner's Name</td>
      <td>
        <input id="form_owner" type="text"/>
      </td>
    </tr>    
  </table>
  <input type="button" onclick="sendNewSoftRequest();" value="submit"/>
</form>
</body>
</html>
